function getlist_book_type(){
	var localObj = window.location;
	var contextPath = localObj.pathname.split("/")[1];
	var basePath = localObj.protocol+"//"+localObj.host+"/"+contextPath+"/";
	$.ajax({  
		url:basePath+"bookType/getbycondition", 
		data:'{"page":1,"count":"9999"}',
		type:"post",
		success:function(resultstring){  
			var result=eval(resultstring); 
			var booktypelist=new Array();
			$("#bookType_list_searche").empty();
			$("#bookType_list").empty();
			$("#bookType_list_change").empty();
			booktypelist=eval(result.data.rows);
			$("#bookType_list_searche").append('<option value="">请选择类型</option>');
			$("#bookType_list").append('<option value="">请选择类型</option>');
			$("#bookType_list_change").append('<option value="">请选择类型</option>');
			$.each(booktypelist, function (i, bookType) {
				$("#bookType_list_searche").append('<option value="'+ bookType.id+'" name="'+bookType.id+'" >'+ bookType.name+'</option>');
				$("#bookType_list").append('<option value="'+ bookType.id+'" name="'+bookType.id+'" >'+ bookType.name+'</option>');
				$("#bookType_list_change").append('<option value="'+ bookType.id+'" name="'+bookType.id+'" >'+ bookType.name+'</option>');
			}); 
		} 
	});
}
function getlist_book(){
	var localObj = window.location;
	var contextPath = localObj.pathname.split("/")[1];
	var basePath = localObj.protocol+"//"+localObj.host+"/"+contextPath+"/";
	$.ajax({  
		url:basePath+"book/getbycondition", 
		data:'{"page":1,"count":"9999"}',
		type:"post",
		success:function(resultstring){  
			var result=eval(resultstring); 
			var booktypelist=new Array();
			$("#book_list_search").empty();
			$("#book_list").empty();
			$("#book_list_change").empty();
			booklist=eval(result.data.rows);
			$("#book_list_search").append('<option value="">请选择书籍</option>');
			$("#book_list").append('<option value="">请选择书籍</option>');
			$("#book_list_change").append('<option value="">请选择书籍</option>');
			$.each(booklist, function (i, book) {
				$("#book_list_search").append('<option value="'+ book.id+'" name="'+book.name+'" >'+ book.name+'</option>');
				$("#book_list").append('<option value="'+ book.id+'" name="'+book.name+'" >'+ book.name+'</option>');
				$("#book_list_change").append('<option value="'+ book.id+'" name="'+book.name+'" >'+ book.name+'</option>');
			}); 
		} 
	});
}